<html>
    <head>
        test
    </head>
    <body>
        <canvas id="canvas" width="700" height="700"></canvas>
        <script type="text/javascript" src="./fabric.js"></script>
        <script type="text/javascript">
            var canvas = new fabric.Canvas('canvas',{
                backgroundColor:'#888'
            })
            canvas.add(new fabric.Rect({
                width:100,
                height:100,
                color:'111'
            }))
        </script>
    </body>
</html>